package com.plusjun.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.plusjun.common.utils.PageUtils;
import com.plusjun.gulimall.product.entity.AttrGroupEntity;
import com.plusjun.gulimall.product.vo.AttrGroupWithAttrsVO;
import com.plusjun.gulimall.product.vo.SpuItemAttrGroupVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author jiajiajun
 * @email ${email}
 * @date 2020-05-13 18:07:02
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils  queryPage(Map<String, Object> params, Long categoryId);

    /**
     * 根据分类Id查出所有的分组以及这些组中的属性
     * @param catelogId
     * @return
     */
    List<AttrGroupWithAttrsVO> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVO> getAttrGroupWithSpuId(Long spuId , Long catalogId);


}

